import org.springframework.context.support.ClassPathXmlApplicationContext;

// 加载包含 骑士 的Spring上下文
public class 骑士Main {
  public static void main(String[] args) throws Exception {
    ClassPathXmlApplicationContext context = 
        new ClassPathXmlApplicationContext(
                "spring/吟游诗人.xml");
    I骑士 某骑士 = context.getBean(I骑士.class);
    某骑士.执行任务();
    context.close();
  }
}